﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/system',
    layout: false,
    routes: [
      {
        path: '/system',
        routes: [
          {
            name: 'system-login',
            path: '/system/login',
            component: './System/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },

  // {
  //   path: '/aaaa',
  //   name: 'aaaa',
  //   icon: 'crown',
  //   access: 'canSys',
  //   routes: [
  //     {
  //       name: 'table-list',
  //       path: '/aaaa/list',
  //       component: './SysAuth',
  //     },
  //     {
  //       name: 'auth-config',
  //       path: '/aaaa/config',
  //       component: './AuthConfig',
  //     },
  //   ],
  // },

  // {
  //   name: 'list.table-list',
  //   icon: 'table',
  //   path: '/product/list',
  //   access: 'canAdmin',
  //   component: './SysAuth',
  // },
  // {
  //   name: 'auth-config',
  //   path: '/auth/config',
  //   access: 'canAdmin',
  //   component: './AuthConfig',
  // },
  {
    path: '/welcome',
    component: './Welcome',
  },
  {
    path: '/',
    redirect: '/user/login',
  },
  {
    component: './404',
  },
];
